import { create } from "zustand";

export const useStore = create<{
  collapsed: boolean;
  currentActiveMenu: string;
  setCurrentActiveMenu: (menu: string) => void;
  toggle: () => void;
}>((set) => ({
  collapsed: false,
  currentActiveMenu: "/dashboard",
  setCurrentActiveMenu: (menu: string) => set({ currentActiveMenu: menu }),
  toggle: () => set((state) => ({ collapsed: !state.collapsed })),
}));
